﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace QueuesLib {
    [DataContract]
    public class Subject {
        [IgnoreDataMember]
        public static readonly int ANY_SUBJECT = -1;

        [DataMember(IsRequired = true, Order=1)]
        public int Id { get; set; }

        [DataMember(IsRequired = true, Order = 2)]
        public string Name { get; set; }

        [DataMember(IsRequired = true, Order = 3)]
        public string Mnemonic { get; set; }

        public Subject(int id, string name, string mnem) {
            Id = id;
            Name = name;
            Mnemonic = mnem;
        }

        public Subject() {

        }
    }
}
